package com.strange.mdl.module.mdl.controller.admin.dailydharma.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 今日弘法新增/修改 Request VO")
@Data
public class DailydharmaSaveReqVO {
    @Schema(description = "视频唯一ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28183")
    private Long id;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "标题不能为空")
    private String title;

    @Schema(description = "视频简介", example = "你猜")
    private String description;

    @Schema(description = "封面链接", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotEmpty(message = "封面链接不能为空")
    private String coverUrl;

    @Schema(description = "视频链接", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotEmpty(message = "视频链接不能为空")
    private String videoUrl;

    @Schema(description = "时长，单位秒")
    @JsonDeserialize(using = SafeStringToDoubleDeserializer.class)
    private Double duration;

    @Schema(description = "状态: 0-下架, 1-上架", example = "1")
    private Integer status;

    @Schema(description = "备注", example = "你猜")
    private String remark;

}